package com.itheima.service;

import com.itheima.domain.Product;

import java.io.ByteArrayOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

public interface ProductService {
    List<Product> findAll(String pageNum, String pageSize);

    void save(Product product);

    Product findById(String id);

    void deleteByIds(String[] id);

    void update(Product product);

    void openByIds(String[] id);

    void closeByIds(String[] id);

    ByteArrayOutputStream download() throws IOException;
}
